package com.castle.fortress.admin.oa.entity;

import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.util.Date;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.*;
import lombok.EqualsAndHashCode;
import com.castle.fortress.admin.core.entity.BaseEntity;

/**
 * 考勤规则设置 实体类
 *
 * @author whc
 * @since 2022-11-03
 */
@Data
@TableName("oa_attendance_setting")
@EqualsAndHashCode(callSuper = true)
public class AttendanceSettingEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;
    /**
     * 考勤类型
     */
    private Integer type;
    /**
     * 规则名称
     */
    private String name;
    /**
     * 打卡人员/部门
     */
    private String personnel;
    /**
     * 提醒时间(分钟)
     */
    private Integer remind;
    /**
     * 白名单人员
     */
    private String white;
    /**
     * 考勤地点文字描述
     */
    private String address;
    /**
     * 考勤地点(经纬度)
     */
    private String addressRange;
    /**
     * 考勤距离(米)
     */
    private String distance;
    /**
     * 是否需要申请
     */
    private Integer isApply;
    /**
     * 是否需要拍照
     */
    private Integer isPhoto;
    /**
     * 权重排序
     */
    private Integer sort;

    /**
     * 关联的时间设置
     */
    @TableField(exist = false)
    private AttendanceSettingDateEntity attendanceSettingDateEntity;


}
